package com.neusiri.exp.odc.accept.controller;

import com.neusiri.exp.odc.accept.dto.AcceptanceModel;
import com.neusiri.exp.odc.accept.service.AcceptanceWebBll;
import com.neusiri.exp.odc.pub.BaseResult;
import com.neusiri.exp.odc.pub.ServiceSdkPageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>验收控制器</p>
 * <p>创建日期：2020-05-12</p>
 *
 * @author 周群峰 zhou-qf_sr@neusiri.com
 */
@RestController
public class AcceptanceWebImpl {

    @Autowired
    private AcceptanceWebBll acceptanceWebBll;

    @RequestMapping("/demo")
    public AcceptanceModel demo(){
        return ServiceSdkPageResult.buildResultByBaseResult(new BaseResult(acceptanceWebBll.demo()),
                10);
    }
}
